<div id="image-thumbnail">
    <?php for($x=0;$x<$this->config->item('backyard_image_upload_limit', 'layout');$x++){ ?>
    <div class="thumbnails" >
        <div class="upload-image">
        <?php if(!isset($upload_image[$x])){ ?>
            <div class="empty-image"><img src="<?php echo $this->config->item('empty_thumb_url','layout'); ?>" width="117" height="80" /></div>
        <?php }else{ ?>
            <img width="117" height="80" src="/assets/image_uploader/thumbs/<?php echo isset($post[0]['user_id'])?$post[0]['user_id']:$user_id; ?>/<?php echo $upload_image[$x]; ?>"><input type="hidden" value="<?php echo $upload_image[$x]; ?>" name="upload_image[]">
            <div class="cancel_btn" onclick="cancelUpload(this,'<?php echo $upload_image[$x]; ?>')" style="display: none;">cancel</div>
        <?php } ?>
        </div>
    </div>
    
    <?php } ?>
</div>
<div id="thumbnail-fine-uploader"></div>
   